package com.hxkj.controller.taglib;

        import com.hxkj.domain.po.Leaflet;
        import com.hxkj.service.article.LeafletService;
        import com.platform.common.domain.result.ResultMessageStruct;
        import org.springframework.beans.factory.annotation.Autowired;
        import org.springframework.web.bind.annotation.ModelAttribute;
        import org.springframework.web.bind.annotation.RequestMapping;
        import org.springframework.web.bind.annotation.RestController;

        import java.util.concurrent.Callable;

/**
 * 生成多个单页的静态
 * <p>
 * Created by chenfangzhou 2018.8.9
 */
@RestController
@RequestMapping("/createLeafletPages")
public class CreateLeafletPagesController {


    @Autowired
    private LeafletService leafletService;

    /****
     * 生成单页静态
     *
     * @return Exception
     * ***/
    @RequestMapping(value = "/create")
    public Callable<ResultMessageStruct> CreateLeafletPages(@ModelAttribute Leaflet leaflet) throws Exception {
        return () -> leafletService.CreateLeafletPages(leaflet);
    }


}
